<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/reset.css" />
		<link rel="stylesheet" type="text/css" href="css/active.css" />
		<link rel="stylesheet" type="text/css" href="css/swiper.min.css" />
		<script src="https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>
		<title>活动详情</title>
	</head>

	<body>
		<div class="active_web">
			<div class="hangder_img">
				<img src="" />
			</div>
			<div class="content">
				<p>活动时间</p>
				<hr />
				<div class="yuan1"></div>
			</div>
			<p class="time"><span class="starttime"></span>—<span class="endtime"></span></p>
			<div class="introduce">
				<p>活动介绍</p>
				<hr />
				<div class="yuan2"></div>
			</div>
			<div class="active_content">
				<h4 style="text-align: center;"></h4>
				<p class="xiawen"></p>
			</div>
		</div>
	</body>
	<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" src="//f.moblink.mob.com/3.0.1/moblink.js?appkey=24ef5f4c90a0a"></script>
	<script type="text/javascript">
		var Urls = 'http://appuser.orz3.top';
		//切割url
		var url_current = window.location.href;
		var ary = url_current.split("?"); //用“&”将URL分割成2部分每部分都有你需要的东西;
		var url1 = ary[1]; //获取到URL的另一部分"id=1";
		var Id = url1.split("=")[1]; //获取到id的值 1
//		var Id = 2;
		MobLink({
			el: '',
			path: 'demo/a',
			params: {
				type: "ACTIVE",
				id: Id,
			},
		});
		$.ajax({
			type: "post",
			url: Urls + "/api/Activity/GetActivityDetail",
			data: JSON.stringify({
				"ActivityId": Id,
				"MemberAccount": ""
			}),
			success: function(res) {
				let data = res.Data.ActivityList;
				console.log(data);
				$('.hangder_img').find('img').attr('src', data.PhotoUrl)
				$('.starttime').text(data.StartTime);
				$('.endtime').text(data.EndTime);
				$('.active_content h4').text(data.ActivityTitle);
				document.querySelector('.xiawen').innerHTML = data.ActivityDescription;
			}
		});
	</script>

</html>